package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.CustomerType;

public interface CustomerTypeMapper {
	// 新增顾客类型
	public int addCustomerType(CustomerType customerType);

	// 删除顾客类型
	public int deleteCustomerType(@Param("customertype_id") int customertype_id);

	// 查询顾客类型
	public List<CustomerType> getCustomerTypeList(@Param("customertype_name") String customertype_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询顾客类型行数
	public Object getCustomerTypeCount(@Param("customertype_name") String customertype_name);

	// 获取顾客类型Id
	public CustomerType getCustomerTypeId(@Param("customertype_id") int customertype_id);

	// 新增顾客类型
	public int updateCustomerType(CustomerType customerType);
}
